
class phone:
    IMEI=None
    produce="ITCAST"

    def call_by_5g(self):
        print("父类的5G通话")

class myphone(phone):#子类中调用父类成员
    produce="heima"

    def call_by_5g(self):
        print("子类的5G通话")
        #1
        print(self.produce)#子类里面重写父类的成员函数，并且想在父类里再次调用父类的成员函数
        print(phone.produce)
        print(phone.IMEI)
        phone.call_by_5g(self)

        #2
        super().call_by_5g()
    
    

myp=myphone()
myp.call_by_5g()





